package gallery.asset
{
	[Bindable] public class Photo
	{
		public var name:String;
		public var description:String;
		public var source_thumb:String;
		public var source_big:String;
		public var file:String;
		
		 
		public function Photo(photo:Object=null)
		{
			if (photo != null)
			{
				set_properties(photo);
			}
		}
		
		public function set_properties(photo:Object):void 
		{
			this.name = photo.name;
			this.description = photo.description;
			this.source_thumb = photo.source_thumb;
			this.source_big = photo.source_big;
			
			if(photo.file != undefined)
				this.file = photo.file;
			else
				this.file = '';
		}
	}
}